# -*- coding:utf-8 -*-
from pymongo import MongoClient

conn = MongoClient("127.0.0.1", 27017);
db = conn.stk;  # 如果不存在，则自动创建

'''
获取mongodb连接
'''
def getConnection():
  return conn;

'''
获取数据库(stk)
'''
def getDB():
  return db;